from jinja2 import FileSystemLoader, Environment


loader = FileSystemLoader('templates')
env = Environment(loader=loader)
tpl=env.get_template('child.conf.tpl')
output=tpl.render()

print(output)